[Top] [Prev] [Next] [Bottom]
[Contents]
SaBlobSetLog
Toggles the logging on and off for Sybase transactions using the SaPut and SaGet functions for Blobs.
#include "WorkingDialog.h"
void SaBlobSetLog(int use_log);
Arguments
use_log
- 1 - use Sybase logging
- 0 - do not use logging.
Return Values
None
The logging method for all of the Blob functions in the Sapphire/Web API is off. This poses a problem because the default logging method for Sybase is on. The reason the Blob functions don't use logging by default is the size of blobs tend to be huge, up to 2 gigabytes. Blobs will fill up your transaction logs quickly, causing an error to occur, and transactions to fail.
If you wish to use logging, you must call SaBlobSetLog(1) somewhere in your code, before any other Blob functions. SaBlobSetLog
can be used to toggle logging on/off at any time. SaBlobSetLog
only affects the Blob functions in Sapphire/Web. Other transactions like object bindings or ad hoc queries are not affected.
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.